import { VuePage } from "@/core/vuePage";
import { ButtonComp } from "@/components/button/index";

class ButtonVue extends VuePage<{}, {}, ButtonVue> {
  getPath(): string {
    return "/buttonVue";
  }
}

export const buttonPage = new ButtonVue();

buttonPage.registerComponent(
  new ButtonComp(
    {},
    {
      text: "海绵",
      type: "success",
      click() {
        console.log(buttonPage.getProps());
      },
    }
  ).setDataSource({ text: "88", hh: "44" })
);

console.log(buttonPage, "buttonPage");
